﻿using System.Windows.Controls;

namespace Lib.Mail
{
    public partial class Index : Page
    {
        public MailViewModel ViewModel
        {
            get
            {
                return this.DataContext as  MailViewModel;
            }
        }

        public Index()
        {
            InitializeComponent();
        }

        private void Button_Click(object sender, System.Windows.RoutedEventArgs e)
        {
        	ViewModel.ReceiveOne(((sender as Button).DataContext as MailMessage).Tipe + "DTO");
        }

      
    }
}
